package com.xudu.controller;

import com.xudu.common.Result;
import com.xudu.entity.User;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * ClassName: IUserController
 * Description:
 *
 * @Author xudu
 * @Create 2024/4/28
 */

@RequestMapping("/user")
public interface IUserController {

    /**
     * 用户登陆方法接口
     * @param user
     * @return
     */

    @PostMapping("login")
    Result login(@RequestBody User user) ;

    /**
     * 用户注册方法接口
     * @param user
     * @return
     */

    @PostMapping("register")
    Result register(@RequestBody User user) ;

    /**
     * 用户退出方法接口
     * @param user
     * @return
     */
    @RequestMapping("exit")
    Result exit(@RequestBody User user);
}
